  <link rel="stylesheet" href="../Public/style/effect.css" />
  <script>
	 function  tab_shou(id){
		 $(".choose_type").css("display","none");
		  $("#"+id).css("display","block");
		 }
		 
		 
 </script>
 <style>
 .choose_type{ z-index:999}
 </style>

<div id="top">
		 <div class="head1 clear">
			 <div class="account sprite_icon" style="text-align:center; ">
                  <a href="index.php?g=Mobile&m=User&a=index" style=" color:#FFF; line-height:50px">
                 {if cookie('username')}
                  {php $user=M('User')->field('username')->where('id='.$jgsatuserid)->find()}
                  {php echo $user['username']} 
                 {else}登录
                 {/if}
                 </a>
			 </div>
			   {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			     <span class="icon2 icon_com">
			 </div>
		 </div>
	 </div>
   <include file="Mobile:nav"/>
{php if($list):}
	 
     <div class="tab1" id="tabajax">
	   <volist name="list" id="r"  key="k">
        {php $user = M('User')->where('id='.$r['userid'])->find(); }
           <div class="P_mod_example P_color">
			 <div class="section">
			     <a href="index.php?g=Mobile&m=Case&a=show&id={$r.id}">
					 <div class="pic">
						 <img src="{$r.thumb_list}" height="145" alt="" />
					 </div>
					 <div class="info clear">
						 <div class="private">
							 <div class="img">
								 <img src="{$user['avatar']}" alt="" />
							 </div>
							 <span class="name">{$r['username']}</span>
						 </div>

						 <div class="mes">
							 <div class="tittle">
								 <h2>{$r['title']}</h2>
								 <p>{$r['describe']|str_cut=###,35}</p>
							 </div>

							 <div class="type">
								 <p>类型：
                                     <YP:list name="Label" where="genre=17" id="v" limit="50">
                                      <?php echo $r['itemType'] == $v['id'] ? $v['title'] : ''; ?>
                                     </YP:list>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;风格：
                                     <YP:list name="Label" where="genre=21" id="v" limit="50">
                                         <?php echo $r['style'] == $v['id'] ? $v['title'] : ''; ?>
                                     </YP:list>
                                 </p>
								 <p>面积：{$r.itemArea}㎡&nbsp;&nbsp;&nbsp;&nbsp;造价：<?php echo $r['budget']?>万元</p>
							 </div>

							 <em>{$r['createtime']|remianday=###}</em>
						 </div>
						 
					 </div>
				 </a>
				 
			 </div> 
		 </div>
       </volist>  
	 </div>
{if $count>$listRows}
<div class="psges" name="{$url_s}&p=2">下拉加载更多</div>
{else}
 <div  style="width:100%;     width: 100%; text-align: center;margin-top: 10px;padding: 0px 0 80px !important;">没有更多</div>

{/if}

     
 
 
 
 
     {if empty($list)}
       <div style="width:100%; height:300px;"></div>
     {/if}
      	 
	 
{php else:} 

<div class="main" style=" height:500px; font-size:24px; color:#999; text-align:center">


    <ul class="case" id="" style="margin-top:100px;">
     对不起，没有找到：{$seo_title}的相关结果
    </ul>
</div>


{php endif;}


<style>
  #footer{ display:none}
  </style>   
<script>
     $(window).scroll(function()
 
   {
 
    if ($(window).scrollTop() == $(document).height() - $(window).height())
 
    {
 
         var url=$('.psges').attr("name");
		 $('.psges').html('加载中...');
	   //alert(url)
		 $.ajax({
			type:"GET",
			url: url,
			//data: "name=John&location=Boston",
			dataType:'json', //数据类型
			success: function(msg){
				if(msg.list){
					var result_len=msg.list.length;
					for(var i=0;i<result_len;i++){
						//var unixTimestamp = new Date(msg.list[i].createtime * 1000) ;
                       // var commonTime = unixTimestamp.toLocaleDateString();
						var html='';
						    html+='<div class="P_mod_example P_color">';
			                html+='<div class="section">';
			                html+='<a href="index.php?g=Mobile&m=Case&a=show&id='+msg.list[i].id+'">';
					        html+='<div class="pic">';
						    html+='<img src="'+msg.list[i].thumb_list+'" height="145" alt="" />';
					        html+='</div>';
					        html+='<div class="info clear">';
						    html+='<div class="private">';
							html+='<div class="img">';
						    html+='<img src="'+msg.list[i].avatar+'" alt="" />';
							html+='</div>';
							html+='<span class="name">'+msg.list[i].username+'</span>';
						    html+='</div>';
                            html+='<div class="mes">';
							html+='<div class="tittle">';
						    html+='<h2>'+msg.list[i].title+'</h2>';
						    html+='<p>'+msg.list[i].describe+'</p>';
							html+='</div>';
                            html+='<div class="type">';
						    html+='<p>类型：'+msg.list[i].itemType+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;风格：'+msg.list[i].style+'</p>';
							html+='<p>面积：'+msg.list[i].itemArea+'㎡&nbsp;&nbsp;&nbsp;&nbsp;造价：'+msg.list[i].budget+'万元</p>';
							html+='</div>';
                            html+='<em>'+msg.list[i].date+'</em>';
						    html+='</div>';
						    html+='</div>';
				            html+='</a>';
				            html+='</div>'; 
		                    html+='</div>';
							
					 
					  $("#tabajax").append(html);
					}
					 $('.psges').attr('name',msg.p);
					 $('.psges').html('下拉加载更多');
					 
					}else{ $('.psges').html('没有更多');  }
				    
					
			   
			  
				}
	   
				
		});
	   
 
    }
 
   });
   

</script>    
     	 

	 

	 

	 